﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
public partial    class Color
    {
     #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public Color(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<Color> GetAllColor()
        {
            return _dataObject.GetAllColor();
        }
        public void Create()
        {
            _dataObject.CreateColor(this);
        }
        public void Delete()
        {
            _dataObject.DeleteColor(this);
        }
        public void Update()
        {
            _dataObject.UpdateColor(this);
        }
        public void GetColorById()
        {
            _dataObject.GetColorById(this);
        }
        public void GetColorByName()
        {
            _dataObject.GetColorByName(this);
        }
    }
}
